{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    
   	财务管理
    <span class="c-gray en">&gt;</span>
    额度记录
    <span class="c-gray en">&gt;</span>
    <a href="javascript:;">充值账变</a>
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  
  <div style="padding:10px 0;height:30px;">
    <div style="float:left;margin-left:20px;">
      <a style="margin:10px 5px;background:#3b6ea0;" class="btn btn-primary radius" href="{:url('Recharge/czAccount')}" >充值账变</a>
      <a style="margin:10px 5px;" class="btn btn-primary radius" href="{:url('Recharge/txAccount')}">提现账变</a>
      <a style="margin:10px 5px;" class="btn btn-primary radius" href="{:url('Recharge/cjAccount')}">彩金账变</a>
      <a style="margin:10px 5px;" class="btn btn-primary radius" href="{:url('Recharge/zzAccount')}">总账变</a>
    </div>
  </div>
  
  <div class="text-c" style="padding :20px 0;">
    <form action="" enctype="application/x-www-form-urlencoded" method="get" class="l" style="margin-left:20px;">
     &nbsp;&nbsp;从：
    <input type="text" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" name="sDate1" value="{$start|default=''}" id="sDate1" class="input-text Wdate" style="width:120px;">
     到：
    <input type="text" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" name="sDate2" value="{$end|default=''}" id="sDate2"  class="input-text Wdate" style="width:120px;margin-right:15px;">
    <input type="text" name="us_sql" value="{$us_sql|default=''}" placeholder=" 会员名称" style="width:150px" class="input-text">
    <button class="btn btn-success" type="submit" style="margin-right:20px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
  </form>
  </div>
  
  <div class="page-container  dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                <th>交易单号</th>
                <th>会员账号</th>
                <th>交易类别</th>
                <th>交易前金额</th>
                <th>交易金额</th>
                <th>优惠金额</th>
                <th>交易后金额</th>
				<th>充值时间</th>
                </tr>
              </thead>
              <tbody>
			  {foreach($query as $item)}
                <tr class="text-c">
                	<td>C{$item.cztime}{$item.id}</td>
                	<td>{$item.username}</td>
                	<td>充值</td>
                	<td>{$item.czhje-$item.je-$item.hy_zsje-$item.hy_msje|sprintf="%.2f",###}</td>
                	<td>{$item.je}</td>
                	<td>{$item.hy_zsje+$item.hy_msje}</td>
                	<td>{$item.czhje}</td>
                  	<td>{$item.cztime|date="Y-m-d H:i:s",###}</td>
                </tr>
			  {/foreach}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
            <span style="float:right;margin-left:-2px;">总共{$query->lastPage()}页  当前第{$query->currentPage()}页 ，共{$query->total()}条</span>
            <div style="float:left;">{$query->render()}</div>
    </div>
  </div>
{/block}

{block name="js"}
  <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
  <script type="text/javascript">
    $(function() {
      $('.skin-minimal input').iCheck({
        checkboxClass : 'icheckbox-blue',
        radioClass : 'iradio-blue',
        increaseArea : '20%'
      });
      $("#tab-system").Huitab({
        index : 0
      });
    });
    
</script>

{/block}
